<template>
  <div class="panel">
    <div class="head">
      <span>{{ props.title }}</span>
    </div>
    <div class="content">
      <slot name="content"></slot>
    </div>
  </div>
</template>

<script setup>
const props = defineProps({
  title: {
    type: String,
    default: '',
  },
})
</script>

<style scoped>
.panel {
  min-width: 300.006px;
  min-height: 190.006px;
  display: flex;
  flex-direction: column;
  background-image: url(../assets/uiResources/panel.png);
  background-size: 100% 100%;
  background-repeat: no-repeat;
}

.panel .head {
  width: 100%;
  height: 45px;
  font-family: '等线Bold';
  letter-spacing: 1px;
}

.panel .head span {
  display: inline-block;
  font-size: 21px;
  background: rgb(255, 255, 255);
  background-image: linear-gradient(180deg, rgba(255, 255, 255, 1) 9%, rgb(74, 186, 255) 57%);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  height: 100%;
  line-height: 45px;
  margin-left: 38px;
  margin-top: 2px;
}
</style>
